package org.wk.user.enums;

import org.wk.core.common.view.GeneralResponseCode;

public enum ResponseCode implements GeneralResponseCode{

	MOBILE_NUMBER_ERROR("mobile_number_error","手机号码错误"),
	MOBILE_NUMBER_EXIST("mobile_number_exist","手机号码已存在"),
		
	SMS_CODE_ERROR("sms_code_error","手机验证码错误"),
	SMS_CODE_EMPTY("sms_code_empty","手机验证码不能为空"),
	
	ACCOUNTS_PASSWORD_ERROR("accounts_password_error","帐号或密码错误"),
	ACCOUNTS_UN_EXIST("accounts_un_exist","帐号不存在"),
	ACCOUNTS_FREEZE("accounts_freeze","帐号被冻结"),
	REFERRAL_CODE_INVALID("referral_code_invalid","推广码无效"),

	PASSWORD_ERROR("password_error","密码至少六位且不能含有空格!"),
	SEX_CODE_ERROR("sex_code_error","性别码错误"),
	REAL_NAME_EMPTY("password_empty","真实姓名不能为空"),
	IDCARD_NO_EMPTY("idcard_no_empty","身份证号不能为空"),
	IDCARD_NO_ERROR("idcard_no_error","身份证号错误"),
	LOGIN_FAIL_RETRY("login_fail_retry","登录失败请重试"),
	TODAY_HAS_SIGN("taday_has_sign","今天已经签到，不可重复签到"),
	ENTERED_PASSWORD_DIFFER("entered_password_differ","两次密码输入不一致"),
	OLD_PASSWORD_ERROR("old_password_error","旧密码输入错误");
	private String code;
	private String message;

	private ResponseCode(String code, String message) {
		this.code = code;
		this.message = message;
	}

	
	/* (非 Javadoc)
	 * <p>Title: getMessage</p>
	 * <p>Description: </p>
	 * @return
	 * @see org.wk.core.common.exception.GeneralExceptionCode#getMessage()
	 */ 
	
	@Override
	public String getMessage() {
		// TODO Auto-generated method stub
		return message;
	}

	
	/* (非 Javadoc)
	 * <p>Title: getCode</p>
	 * <p>Description: </p>
	 * @return
	 * @see org.wk.core.common.exception.GeneralExceptionCode#getCode()
	 */

	@Override
	public String getCode() {
		// TODO Auto-generated method stub
		return code;
	}


}
